/**
 * Created by TAO on 2019/05/22 16:23.
 */
import util from '@/libs/util'

export const ERR_OK = 0
export const ERR_NO = 1
export const ERR_JUMP = 2
export const ERR_EVAL = 3
// 登录态Token异常
export const ABN_NO = 103
// 权限不住
export const VER_NO = 201
export const TOKEN = util.cookies.get('token')
export const VERSION = '0.0.1'
export const HEADERS = () => {
  return {
    'X-Requested-With': 'XMLHttpRequest',
    'Content-Type': 'application/x-www-form-urlencoded',
    'version': VERSION,
    'X-Token': TOKEN
  }
}
